﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.BasicData.Products.Repositories
{
    public interface IProductAuxiliaryUnitRepository : IRepository<ProductAuxiliaryUnit, Guid>
    {
        Task<int> GetCountAsync(Guid productId, Guid otherUnitId, Guid? excludeId, CancellationToken cancellationToken = default(CancellationToken));

        Task<List<ProductAuxiliaryUnit>> GetPagedListAsync(Guid? productId , Guid? otherUnitId , int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = default(CancellationToken));

        Task<long> GetCountAsync(Guid? productId, Guid? otherUnitId, CancellationToken cancellationToken = default(CancellationToken));
    }
}
